import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;

/**
 * 第一个java类
 *
 * @author yuxiao
 * @create 2016-06-28 下午5:20
 */

public class First {
  public static void main(String[] args){
    int b = 2;
    System.out.println(b);
    ArrayList<Integer> arrayList = new ArrayList<Integer>();
    HashMap<Object, String> map = new HashMap<Object, String>();
    HashSet<Integer> set = new HashSet<Integer>();
    LinkedList<String> list = new LinkedList<String>();

    arrayList.add(1);
    arrayList.add(2);

    Iterator<Integer> it = arrayList.iterator();
    while (it.hasNext()) {
      System.out.println(it.next());
    }

    int[] a = new int[]{2,3,1,4,6};
    Arrays.sort(a);
    for (int i = 0; i < a.length; i++) {
      System.out.println(a[i]);
    }
  }
}
